package cn.edu.cqvie.cloud.remote;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


@FeignClient(value = "demo",
        fallback = DemoServiceHystrix.class)
public interface DemoService {

    @RequestMapping(value = "/demo/index", method = RequestMethod.GET)
    String demo();
}
